package com.robot.dao.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.robot.dao.dto.PromptTemplateInfo;
import com.robot.dao.entity.Prologue;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BasicInfoVO implements Serializable {
    private String robotId;
    private String robotName;
    private String robotUrl;
    private String robotDescription;
    private String characterDesign;
    private Boolean isTop;
    private String categoryName;
    private Integer robotType;
    private Integer canEditType;
//    @JsonProperty("knowledges")
//    private List<KnowledgeOverViewVO> knowledges;
    private Prologue prologue;
    private PromptTemplateInfo prompt_template_info;

    public void setIsTop(Integer isTop) {
        this.isTop= isTop != 1;
    }
}
